<template class="jiapu-submit-apply-pop">
	<view class="parent-view">
		<view class="pop-view">
			<view class="title-parent">
				<text class="title-arrow" @click="itemClose">返回</text>
				<text class="pop-title">选择管理员提交申请</text>
			</view>
			<view class="manager-view" @click="itemClick">
				<image class="head-image" :src="firstManagerData.avatar" mode="scaleToFill"></image>
				<view class="content-parent">
					<text class="manager-name" v-if="firstManagerData.auth==1">{{firstManagerData.name}}(管理员)</text>
					<text class="manager-name" v-if="firstManagerData.auth==2">{{firstManagerData.name}}(联合发起人)</text>
					<text class="manager-name" v-if="firstManagerData.auth==3">{{firstManagerData.name}}(发起人)</text>
					<text class="manager-address">{{firstManagerData.site}}</text>
				</view>
				<image class="manager-arrow" src="../../static/right-arrow.png" mode="scaleToFill"></image>
			</view>
			<textarea class="shenqing-desc" placeholder="请输入备注信息" :value="inputContent" />
			<text class="shenqing-btn" @click="submit">提交申请</text>
		</view>
	</view>
</template>

<script>
	import request from '../../pages/index/request.js';
	
	export default {
		name: "jiapu-submit-apply-pop",
		data() {
			return {
				inputContent:"",
			}
		},
		props: {
			firstManagerData:Object,
		},
		methods: {
			///点击用户
			itemClick(e) {
				this.$emit('managerClick',e)
			},
			itemClose(){
				this.$emit('managerClose')
			},
			submit(){
				this.$emit('submitManager',{
					bio:this.inputContent,
					OnPQD:this.$props.firstManagerData.id
				})
			}
		}
	}
</script>

<style>
	@import "jiapu-submit-apply.css";
</style>

